import React, { Component } from 'react'
import { hashHistory } from 'react-router'
import { NavHeader } from '../common'

export default class GiftCoupon extends Component {
  render() {
    return (
      <div className={`rt-gift-coupon-container cm-column-flex-box`}>
        <NavHeader title="赠券" onClick={() => hashHistory.goBack()} />

        <div className={`cm-hint-message-box`}>
          <span>赠券余额：800.00</span>
          <span className={`-rule`}>使用规则</span>
        </div>

        <div className={`cm-scrollable-container`}>
          {
            Array(3).fill(1).map((v, i) => (
              <div key={Math.random()} className={`rt-gift-coupon ${i === 0 ? '-first' : ''}`}>
                <div className={`-above`}>
                  新用户注册赠券
                </div>
                <div className={`-below`}>
                  <div className={`-left`}>
                    <span>有效期至</span>
                    <time>2016年6月30日</time>
                  </div>
                  <div className={`-right`}>
                    <span>¥</span>
                    <strong>100.00</strong>
                  </div>
                </div>
              </div>
            ))
          }
          {
            Array(3).fill(1).map(v => (
              <div key={Math.random()} className={`rt-gift-coupon -grey`}>
                <div className={`-above`}>
                  新用户注册赠券
                </div>
                <div className={`-below`}>
                  <div className={`-left`}>
                    <span>有效期至</span>
                    <time>2016年6月30日</time>
                  </div>
                  <div className={`-right`}>
                    <span>¥</span>
                    <strong>100.00</strong>
                  </div>
                </div>
              </div>
            ))
          }
        </div>
      </div>
    )
  }
}